package com.snuproject.lgt.imgtrans;

import android.graphics.Bitmap;
import android.graphics.Point;
import android.opengl.GLSurfaceView;

import com.lge.real3d.Real3D;
import com.snuproject.lgt.R;

public class GlobalValues {
	
	static private GlobalValues mGV = null;
	static private Bitmap mPerson = null;
    private Point mPersonOff = null;

    private GLSurfaceView glSurfaceView;
    private GL3DImageRenderer renderer;
    private Real3D mReal3D;
    

	private int[][] mBGImgID = {
			{R.drawable.bg_teddy_bear1_l, R.drawable.bg_teddy_bear1_r},

			{R.drawable.bg_universe1_l, R.drawable.bg_universe1_r},
			{R.drawable.bg_world4_l, R.drawable.bg_world4_r},

			{R.drawable.bg_past_japan3_l, R.drawable.bg_past_japan3_r},

			{R.drawable.bg_world2_l, R.drawable.bg_world2_r},
			
			{R.drawable.bg_teddy_bear2_l, R.drawable.bg_teddy_bear2_r},
			{R.drawable.bg_teddy_bear3_l, R.drawable.bg_teddy_bear3_r},
			{R.drawable.bg_teddy_bear4_l, R.drawable.bg_teddy_bear4_r},
			{R.drawable.bg_teddy_bear5_l, R.drawable.bg_teddy_bear5_r},

			
			{R.drawable.bg_past_japan1_l, R.drawable.bg_past_japan1_r},
			//{R.drawable.bg_past_japan2_l, R.drawable.bg_past_japan2_r},
			{R.drawable.bg_past_japan4_l, R.drawable.bg_past_japan4_r},
			{R.drawable.bg_past_japan5_l, R.drawable.bg_past_japan5_r},



			//{R.drawable.bg_world1_l, R.drawable.bg_world1_r},
			{R.drawable.bg_world3_l, R.drawable.bg_world3_r}
	};
	
	private int mBGIndex = 0;
	
	private int[] mEffectID = {
			R.drawable.heart_arrow_thumb,
			R.drawable.moon_thumb
	};

	private int mEffIndex = -1;
	
	static public GlobalValues getInstance() {
		if (mGV == null )
			mGV = new GlobalValues();
		return mGV;
	}
	
	public GlobalValues() {
		initialize();
	}
	
	public void initialize() {
		mBGIndex = 0;
		mEffIndex = -1;
		mPerson = null;
		mPersonOff = new Point();
		mPersonOff.set(0, 0);
	}
	
	public int[][] getBGImgID() {
		return mBGImgID;
	}
	
	public void setBGIndex(int index) {
		mBGIndex = index;
	}
	
	public int getBGIndex() {
		return mBGIndex;
	}
	
	public void setPerson(Bitmap person) {
		mPerson = person;
	}
	
	public Bitmap getPerson() {
		return mPerson;
	}
	
	public void setPersonOff(Point input) {
		mPersonOff = input;
	}
	
	public Point getPersonOff() {
		return mPersonOff;
	}
	
	public int[] getEffectID() {
		return mEffectID;
	}
	
	public void setEffectIndex(int index) {
		mEffIndex = index;
	}
	
	public int getEffectIndex() {
		return mEffIndex;
	}

}
